package demo.spring.securing;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by lushun.chen on 2017/3/22.
 *
 * @author lushun.chen
 */
@Controller
@RequestMapping("/")
public class DemoController {
    @RequestMapping("hello")
    @ResponseBody
    public Object demo() {
        return "ok";
    }

    @RequestMapping("")
    @ResponseBody
    public Object index() {
        return "index";
    }

    @RequestMapping("login")
    public String login() {
        return "login";
    }
}
